import 'package:flutter/material.dart';
import 'package:test_app/core/design_system/extensions/extensions.dart';

class DefaultError extends StatelessWidget {
  final String message;

  const DefaultError({super.key, required this.message});

  @override
  Widget build(BuildContext context) {
    return [
      const Icon(Icons.error_outline, color: Colors.red, size: 16),
      Text(
        message,
        style: const TextStyle(color: Colors.red, fontSize: 12),
        overflow: TextOverflow.ellipsis,
      ),

    ].toRow(mainAxisAlignment: MainAxisAlignment.end, spacing: 10);
  }
}